package com.xgry.bpm.api.base.dbinfo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author adrian
 * @since 2020-07-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dbinfo")
public class Dbinfo extends Model<Dbinfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("cDBName")
    private String cDBName;

    @TableField("cPassWord")
    private String cPassWord;

    @TableField("cPost")
    private String cPost;

    @TableField("cServer")
    private String cServer;

    @TableField("cType")
    private String cType;

    @TableField("cUser")
    private String cUser;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
